<?php

namespace App\Exceptions\API;

use Symfony\Component\HttpKernel\Exception\HttpException;

class APIException extends HttpException
{
    const STATUS_CODE = 500;

    const CODE = 5500;

    const MESSAGE = 'internal_error';


    public function __construct($message = self::MESSAGE, \Exception $previous = null, array $headers = [])
    {
        $statusCode = static::STATUS_CODE;
        $code = static::CODE;
        parent::__construct($statusCode, $message, $previous, $headers, $code);
    }
}
